from aiogram import Bot
from aiogram.types import Message
from settings import settings
from .logger import debugger


# Remove message from chat
async def delete_message(bot: Bot, message: Message):
    if message.from_user.id == message.chat.id:
        await bot.delete_message(
            chat_id=message.from_user.id, message_id=message.message_id
        )
        debugger.info(f"Message deleted {message.message_id}")
    else:
        pass

